package list;


import java.util.ArrayList;
import java.util.List;

public class Listan {
    public static void main(String[] args) {
        for (int i= 0; i < 10; i++){
          new Thread(()->{
              new Listan().exe1();
          }).start();
        }
    }

    public void exe() {
        Person person = new Person();
        person.setSex("1");
        up(person);
    }

    public void up(Person person){
        person.setName("12");
        System.out.println("");
    }
    public void exe1() {
        ArrayList<Object> objects = new ArrayList<>();
        objects.add("11");
        up2(objects);
        System.out.println(objects);
    }



    public void up2(List<Object> objects){
        objects.add("x22");
    }
}
